package fr.teuteuf.runstickmanrun;

public class Score implements Comparable<Score> {
	private String username;
	private int score;
	
	public Score() {
	}
	
	public Score(String username, int score) {
		super();
		this.username = username;
		this.score = score;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	@Override
	public String toString() {
		return "Score [username=" + username + ", score=" + score + "]";
	}

	@Override
	public int compareTo(Score arg0) {
		return arg0.getScore() - score;
	}
	
	
}
